package cn.edu.fzu.delivery.mapper;

import java.util.List;

import cn.edu.fzu.delivery.domain.entity.Network;
import cn.edu.fzu.delivery.domain.enums.NetWorkStatusEnum;
import org.apache.ibatis.annotations.Param;

public interface NetWorkMapper {

    Network getById(@Param("id") Long id);


    List<Network> list(@Param("name") String name, @Param("areaIdList") List<Long> areaIdList,
                       @Param("address") String address, @Param("status") NetWorkStatusEnum status);

    Integer update(@Param("id") Long id, @Param("name") String name,
                   @Param("areaId") Long areaId,
                   @Param("desc") String desc,
                   @Param("address") String address);

    Integer updateStatus(@Param("id") Long id, @Param("status") NetWorkStatusEnum status);

    Integer add(@Param("name") String name,
                @Param("areaId") Long areaId,
                @Param("address") String address,
                @Param("desc") String desc,
                @Param("status") NetWorkStatusEnum status);
}
